class AddWebFetionToUsers < ActiveRecord::Migration
  def self.up
    tool = Tool.find_by_code('web_fetion')
    User.all.each do |user|
      UserToolSetting::WebFetion.create!(
        :user_id => user.id,
        :tool_id => tool.id,
        :column => 2
      )
    end if not Rails.env.test?
  end

  def self.down
  end
end
